<template>
  <div class="App">
    <h1 class="content">我是App</h1>
    <p>{{count}}</p>
    <Cont :count="count"  v-bind="news"/>
   </div>
</template>

<script>
import Cont from '@/components/Cont';

export default {
  name: 'App',
  components: {
    Cont,
  },
  data(){
    return {
      count:0,
      news:{
        imgUrl:"/01.jpg",
        title:"今晚你回家吗。。。",
        otherTitle:"你猜",
      }
    };
  },
  methods:{
    changeCount(n){
      this.count +=n;
    }
  },
}
</script>


